package io.github.talelin.latticy.service.ag;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.github.talelin.latticy.dto.ag.monitoringdevices.CreateOrUpdateMonitoringDevicesDTO;
import io.github.talelin.latticy.model.ag.MonitoringDevicesDO;
import io.github.talelin.latticy.model.ag.MonitoringDevicesDetailDO;

import java.util.List;

public interface MonitoringDevicesService {
    MonitoringDevicesDetailDO getDetailById(int id);
    MonitoringDevicesDO getById(int id);
    List<MonitoringDevicesDO> getMonitoringDevices();
    boolean createMonitoringDevices(CreateOrUpdateMonitoringDevicesDTO validator);
    boolean deleteMonitoringDevices(int id);
    boolean updateMonitoringDevieces(MonitoringDevicesDO md,CreateOrUpdateMonitoringDevicesDTO validator);
    IPage<MonitoringDevicesDetailDO> getMonitoringDeveicesByPage(Page<MonitoringDevicesDetailDO> pager);
    //模糊查询
    IPage<MonitoringDevicesDetailDO> searchRoomByKeyword(Page<MonitoringDevicesDetailDO> pager, String keyword);
}
